package com.supreme.commonboot.error;

public enum CommonEnum implements BaseErrorInterface {
    SUCCESS(0, "success"),
    ERROR(1, "error"),
    FAILURE(2, "failure"),
    ;

    private Integer errCode;

    private String errMsg;

    CommonEnum(Integer errCode, String errMsg) {
        this.errCode = errCode;
        this.errMsg = errMsg;
    }

    @Override
    public Integer getErrCode() {
        return errCode;
    }

    @Override
    public String getErrMsg() {
        return errMsg;
    }
}
